/*
 * @Description: 留言板api
 * @Author: zheng yiliang
 * @Date: 2021-05-29 12:25:02
 * @LastEditTime: 2021-05-29 16:54:00
 * @LastEditors: zheng yiliang
 */

import request from '@/utils/request'

// 查询菜单列表
export function allMsg (query) {
  return request({
    url: '/message/allMsg',
    method: 'get',
    params: query
  })
}

export function replyMessage (data) {
  return request({
    url: '/message/replyMessage',
    method: 'post',
    data
  })
}

export function delReplyMessage (data) {
  return request({
    url: '/message/delReplyMessage',
    method: 'delete',
    data
  })
}
export function delMessage (data) {
  return request({
    url: '/message/delMessage',
    method: 'delete',
    data
  })
}

export function replyRead (data) {
  return request({
    url: '/message/replyRead',
    method: 'put',
    data
  })
}

export function read (data) {
  return request({
    url: '/message/read',
    method: 'put',
    data
  })
}

export function allRead (data) {
  return request({
    url: '/message/allRead',
    method: 'put',
    data
  })
}
